package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDate;

/**
 * <p>
 * 
 * </p>
 *
 * @author lovo
 * @since 2022-08-15
 */
@TableName("t_movie")
public class MovieBean  {
    @TableId(value = "pk_movieId",type = IdType.AUTO)
    private Integer id;
    @TableField("m_name")
    private String name;
    @TableField("m_movieName")
    private String movieName;
@TableField("m_num")
    private Integer num;
@TableField("m_price")
    private Integer price;
@TableField("m_date")
    private String date;
@TableField("m_endDate")
private String endDate;
@TableField("m_img")
    private String img;

    public MovieBean() {
    }

    public MovieBean(String name, String movieName, Integer num, Integer price, String date, String endDate, String img) {
        this.name = name;
        this.movieName = movieName;
        this.num = num;
        this.price = price;
        this.date = date;
        this.endDate = endDate;
        this.img = img;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMovieName() {
        return movieName;
    }

    public void setMovieName(String movieName) {
        this.movieName = movieName;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getEndDate() {
        return endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    @Override
    public String toString() {
        return "Movie{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", movieName='" + movieName + '\'' +
                ", num=" + num +
                ", price=" + price +
                ", date=" + date +
                ", endDate=" + endDate +
                ", img='" + img + '\'' +
                "}\n";
    }
}
